package com.wg.enums;

public enum HttpCodeEnum {

    // 成功
    SUCCESS(200,"操作成功"),
    NEED_LOGIN(401,"需要登录后操作"),
    NO_AUTH(403,"权限不足"),
    SYSTEM_ERROR(500,"系统错误");

    int code;
    String msg;

    HttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
